<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	{pc:get sql="select name from sy_site where siteid=1"}
	<?php $sitename=$data[0]?>
	{/pc}
    <title>
	{if $setting['meta_title']}
		{$setting['meta_title']}{if $page>1} - 第 {$page} 页{/if} - {$sitename['name']}
	{else}
		{if $id}
			{if $customtitle}
				{$customtitle}
			{/if}
			{$title} - {$sitename['name']}
		{elseif isset($SEO['title']) && !empty($SEO['title'])}
			{$SEO['title']} - {$sitename['name']
		{else}
			{$SEO['site_title']}
		{/if}
		{if $page>1} - 第 {$page} 页{/if}
	{/if}
	</title>
	<meta name="keywords" content="{if $setting['meta_keywords']}{$setting['meta_keywords']}{else}{if $seokey}{$seokey}{else}{$SEO['keyword']}{/if}{/if}">
	<meta name="description" content="{if $setting['meta_description']}{$setting['meta_description']}{else}{if $seodescription}{$seodescription}{else}{$SEO['description']}{/if}{/if}">
	
    <link rel="stylesheet" href="{CSS_PATH}index/style.css" />


	<link rel="stylesheet" href="/statics/css/my/lib_1.css">
	<!-- 华样式 -->
	{if $catid || $_GET['m'] === 'search'}
	<link rel="stylesheet" href="/statics/css/my/style11.css">
    <link rel="stylesheet" href="/statics/css/my/reset.css">
    <link rel="stylesheet" href="/statics/css/my/grid.css">
    <link rel="stylesheet" href="/statics/css/my/classify_01.css">
    <link rel="stylesheet" type="text/css" href="/statics/css/my/reset.css" />
    <link rel="stylesheet" type="text/css" href="/statics/css/my/jquery.fancybox.css" />
    <link rel="stylesheet" type="text/css" href="/statics/css/my/products_detail_01.css" />
    <link rel="stylesheet" type="text/css" href="/statics/css/my/zoom.css" />
	{/if}
</head>
<body>
 <!-- 联系方式-->
{pc:get sql="select * from sy_contact" num="1"}
<?php $contact=$data[0];?>
{/pc}


 <!-- 公司简介-->
{pc:get sql="select * from sy_page" num="6"}
<?php $about=$data[0];?>
{/pc}


  <!-- 顶部 -->
  <div id="ding">
    <div id="dingbu">
      <div class="left">
        您好，欢迎访问{$contact['title']}官网！
      </div>
      <div class="right">
        <div class="jiathis_style" style="float:right;">
          <div class="bdsharebuttonbox bdshare-button-style0-24" data-bd-bind="1527732376673">
            <span class="jiathis_txt" style="float:left;">分享到：</span>
            <a href="#" class="bds_more" data-cmd="more"></a>
            <a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a>
            <a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a>
            <a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a>
            <a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a>
            <a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a>
          </div>
          <script>
            window._bd_share_config = { "common": { "bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "0", "bdSize": "24" }, "share": {}, "selectShare": { "bdContainerClass": null, "bdSelectMiniList": ["qzone", "tsina", "tqq", "renren", "weixin"] } }; with (document) 0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];
          </script>
        </div>
      </div>
    </div>
  </div>



  <!-- 抬头 -->
  <div id="tai">
    <div id="taitou">
      <div class="left">
        <img src="/statics/images/index/logo.png" alt="" />
        <p>
          电子元器件一站式采购
          <span>近百家电子厂商授权代理，近万种电子元件现货供应</span>
        </p>
      </div>
      <div class="right">
        <img src="/statics/images/index/phone.jpg" alt="" />
        <p>
          全国免费热线：<br />
          <span>{$contact['phone']}</span>
        </p>
      </div>
    </div>
  </div>


  <!-- 导航 -->
  <div class="nav">
    <div class="nav-bar">
      <ul class="nav-ul">
        <li class="nav-li">
          <a href="/">网站首页</a>
        </li>
		{pc:content action="category" catid="0"}
		{loop $data $r}
			<li class="nav-li">
			  <a href="{$r[url]}">{$r[catname]}</a>
			  {if $r[catid] == 2}
			  <ul class="content-list">
			  {pc:content action="category" catid="$r[catid]" return="dat"}
			  {loop $dat $v}
				<li class="content">
				  <h3><a href="{$v[url]}">{$v[catname]} ></a></h3>
				  <ul>
					{pc:content action="category" catid="$v[catid]" num="5" return="da"}
					{loop $da $c}
					<li><a href="{$c[url]}">{$c[catname]}</a></li>
					{/loop}
					{/pc}
				  </ul>
				</li>
			  {/loop}
			  {/pc}
			  </ul>
			  {/if}
			</li>
		{/loop}
		{/pc}
      </ul>
    </div>
  </div>

  <!--幻灯片-->
  <!-- start-->
  <script type="text/javascript" src="{JS_PATH}index/jquery.min.js"></script>
  <script type="text/javascript" src="{JS_PATH}index/jq.focus.js"></script>
  <div id="flash_bg">
  {if $catid}
					{if $top_parentid}
						<li>
							<a href="{$CATEGORYS[$top_parentid][url]}">
								<img src="{$CATEGORYS[$top_parentid][image]}" style="width:100%;height:auto;" />
							</a>
						</li>
					{elseif $parentid}
						<li>
							<a href="{$CATEGORYS[$parentid][url]}">
								<img src="{$CATEGORYS[$parentid][image]}" style="width:100%;height:auto;" />
							</a>
						</li>
					{else}
						<li>
							<a href="{$CATEGORYS[$catid][url]}">
								<img src="{$CATEGORYS[$catid][image]}" style="width:100%;height:auto;" />
							</a>
						</li>
					{/if}
				{else}
				<div class="focus">
				  <div class="jqfocus">
					<ul>
						{pc:get sql="select src,url from sy_banner where posid=0 order by listid asc"}
							{loop $data $r}
							<li><a href=""
						  style="background:url({$r[src]}) center no-repeat; width:100%; height:600px; display:block;"></a>
					  </li>
							{/loop}
							{/pc}
					  
					</ul>
				  </div>
				</div>
				{/if}
    
  </div>


<div class="clear"></div>